package com.wind.taobao.api.trade.item.rest
{
	import com.wind.taobao.api.trade.item.convert.ItemConvert;
	import com.wind.taobao.core.webservice.TaobaoListResponse;
	import com.wind.taobao.core.webservice.TaobaoResponse;
	
	import mx.collections.ArrayCollection;
	/**
	 * taobao.items.onsale.get Response 
	 * @author fxy
	 * 
	 */
	public class ItemsOnSaleGetResponse extends TaobaoListResponse
	{
		public var items:ArrayCollection;

		public function ItemsOnSaleGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initItems();
		}

		private function initItems():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("items"))
					items=ItemConvert.convertItems(body["rsp"]["items"]);
			}
		}


	}
}